import request from '@/utils/request'

// 登录接口
export const userLoginService = (data) => request.post('/sys/login', data)

// 获取用户资料
export const userGetInfoService = () => request.get('/sys/profile')

// 修改密码
export const userChangePasswordService = ({ oldPassword, newPassword }) =>
  request.put('/sys/user/updatePass', { oldPassword, newPassword })
